package com.ebt.m.presenter;

import com.ebt.m.account.json.ValidateCodeSendResponse;
import com.ebt.m.commons.buscomponent.listview.BaseIView;

/**
 * Created by andy on 16-6-6.
 */
public class LoginContract {
    public interface IView extends BaseIView {
        void showProgress(boolean show);

        void initProgressDialog();

        void showTip(String tip);

        void updateVerificationCode(ValidateCodeSendResponse verificationCodeResult);

    }

    public interface IPresenter {
        void login(final String username, final String password);

        /**
         * 第三方登录
         *
         * @param thirtyId
         * @param thiryType
         * @param userName
         * @param imageUrl
         */
        void thirtyPartLogin(String thirtyId, String thiryType, String userName, String imageUrl);

        void sendVerificationCode(String phoneNo);

        /**
         * 手机验证码快捷登录
         *
         * @param validateId
         * @param phoneNo
         * @param validateCode
         */
        void quickLogin(String validateId, String phoneNo, String validateCode);

    }
}
